#PBAR_VerticalCollimatorBoundaries.py
import numpy as np;

fullFilename = r'C:\Users\jkwong\Google Drive\Miscellaneous\Programming\c\Projects\CollimatorConfiguration\boundaries.txt'

dat = np.genfromtxt(fullFilename, delimiter = ',', dtype = int)

boundaries = np.array([0,58,96,136,178,221,267,310,352,391,429,467,547])
buf = 6;

figure()
plot(dat)
for i in boundaries:
    plot([i-buf,i+buf], [400000,400000], '-r', linewidth = 10)
    
    
    